package com.moore.Servlet;

import com.moore.net.HttpRequest;
import com.moore.net.HttpResponse;
import com.moore.net.HttpServlet;
import com.moore.utils.FileUtils;

public class FileServlet extends HttpServlet {
    @Override
    public byte[] doGet(HttpRequest request, HttpResponse response) {
        byte[] fileData;
        fileData = FileUtils.readFileByIS("html" + request.getUrl());
        return fileData;
    }
}
